package com.guoqing.example.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionEnum {
    CATEGORY_NOT_FOND(404, "商品分类没查到"),

    BRAND_NOT_FOUND(404, "品牌查不到"),
    BRAND_SAVE_ERROR(500, "新增品牌失败"),

    UPLOAD_FILE_ERROR(500, "文件上传失败"),
    INVALID_FILE_TYPE(400, "无效的文件类型"),

    SPEC_GROUP_NOT_FOND(404, "查不到商品规格组"),
    SPEC_PARAM_NOT_FOND(404, "查不到商品规格参数"),

    GOODS_NOT_FOND(404, "商品不存在"),
    GOODS_SAVE_ERROR(500, "新增商品失败"),
    ;
    private int code;
    private String msg;
}
